package com.heisnenhub.common.module.config;

import com.heisnenhub.common.module.print.PrintBanner;
import com.heisnenhub.common.module.utils.SpringUtils;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;

public class MoudleConfig {

    @Bean
    @ConditionalOnMissingBean(name = "printBanner")
    public PrintBanner printBanner() {
        return new PrintBanner() ;
    }


    @Bean
    @ConditionalOnMissingBean(value = SpringUtils.class)
    SpringUtils springUtilsbean() {

        return new SpringUtils();
    }
}
